package com.vclee.fast.integration.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vclee.fast.integration.power.model.SysRole;
import com.vclee.fast.integration.power.model.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<SysRoleMenu> roleMenuList(@Param("roleId") Integer roleId);

    void delRoleMenuByRoleId(@Param("roleId") Integer roleId);

    void insertUserRole(@Param("roleId") Integer roleId, @Param("menuId") Integer menuId);

    List<SysRole> getByOrgId(Integer orgId);
}